package com.od.service;

import com.od.entity.Occupation;

import java.util.List;
import java.util.Map;

public interface OccupationService {

    List<Map<String, Object>> getAllOccupationByEnterpriseId(String occupationEnterpriseId);// 用企业编号进行查询该企业的职位集合

    int addOccupation(Occupation occupation);// 企业增加职位

    int upOccupation(Occupation occupation);// 企业修改某职位的信息

    Occupation getOccupationByOccupationId(Integer occupationId);// 根据职位Id查询职位信息

    int deOccupationByOccupationId(Integer occupationId);// 删除职位编号的职位

    List<Map<String, Object>> getAllOccupations();

    Integer getOccupationCount();

    Map<String, Object> getOccupationDetail(String occupationId);

    List<Map<String, Object>> getSearchedOccupations(Map<String, Object> data);

    List<Map<String, Object>> filterOccupations(List<Map<String, Object>> occupations,
            Map<String, Object> filters);

    List<Map<String, Object>> enterpriseSearch(String input, String enterpriseId);
}
